﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PFAGame
{
    class ProjectileFactory
    {
        public static AProjectile Create(AProjectile.e_object projType)
        {
            AProjectile newProj;

            switch (projType)
            {
                case AObject.e_object.PROJECTILEMOB:
                    newProj = new ProjectileRangedRobot();
                    break;
                case AObject.e_object.PROJECTILESPEC:
                    newProj = new ProjectileSpecialist();
                    break;
                //case AObject.e_object.PROJECTILEQUEEN:
                //    newProj = new ProjectileQueen();
                //    break;
                //case AObject.e_object.MISSILEKIKOODENOIRBEN:
                //    newProj = new MissileKikooDeNoirbenTZ();
                    //Tuple veux Des BunZ ?
                //    break;
                default:
                    newProj = new ProjectileRangedRobot();
                    break;
            }
            return newProj;
        }
    }
}
